<template>
  <div class="top-header">
      <div class="is-left" v-show="isLeft">
          <a-icon type="left" @click="$router.go(-1)" />
      </div>
      <div>
          <h1 class="header-title">{{title}}</h1>
      </div>
  </div>
</template>

<script>
export default {
  props:{
      isLeft:{
          type:Boolean,
          default:false,
      },
      title:{
          type:String,
          require:true,
      }
  }
}

</script>
<style lang="scss" scoped>
.top-header {
  align-items: center;
  background-color: $module-color;
  box-sizing: border-box;
  color: $font-color;
  padding: $common-padding;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 5px 2px rgba($color: #ccc, $alpha: 0.1);
  background-color: $starbucks-color;
  color: $module-color;
  border-bottom: 5px solid $app-bg-color;
  div {
    flex-grow: 1;
    .header-title {
      margin: 0px;
      font-size: 18px;
      // font-size: 1.5rem;
      //font-weight: bolder;
      color: $module-color;
    }
  }
}
</style>